<?php
namespace App\Common\Lib\Hyperf\Model;

use App\Common as com;
use App\Common\Lib\Hyperf\Model\Collection as nameCollection;

class Collection extends \Hyperf\Database\Model\Collection {

	/**
	 * @return com\Lib\Utils\Helper\Array_
	 */
	public function toArrayHelper(  ):com\Lib\Utils\Helper\Array_ {
		return com\Lib\Utils\Helper\Array_::make( $this->toArray() );
	}

	/**
	 * @return array
	 */
	public function toArrayAsParse(  ):array {
		return com\Lib\Utils\Helper\Array_::make( $this->toArray() )->parseName()->toArray();
	}

	/**
	 * 调试命令，输出数据
	 * @return $this
	 */
	public function d(  ):self {
		d( $this->toArray() );
		//
		return $this;
	}
	
}
